//请求后台的方法
import request from '@/request'

//分页查询权限表信息
export function getPermissionListByPage(data){
  return request({
    url:'/permission/getPermissionListByPage',
    method: 'post',
	data
  })
}

//查询权限表信息
export function getPermissionList(){
  return request({
    url:'/permission/getPermissionList',
    method: 'post'
  })
}

//根据ID删除权限表信息
export function delPermissionInfoById(params){
  return request({
    url:'/permission/delPermissionInfoById',
    method: 'post',
	params: params
  })
}

//修改权限信息
export function updatePermissionInfo(data){
  return request({
    url:'/permission/updatePermissionInfo',
    method: 'post',
	data
  })
}

//添加权限信息
export function addPermissionInfo(data){
  return request({
    url:'/permission/addPermissionInfo',
    method: 'post',
	data
  })
}

//添加权限信息
export function getPermissionListByUserName(){
  return request({
    url:'/permission/getPermissionListByUserName',
    method: 'post',
  })
}
